import { fetchWrapper } from './common';

export function authApi(code: string) {
	return fetchWrapper<{
		access_token: string;
	}>(`/auth/workbenchAuthRespToken/auth?authCode=${code}`, undefined, 'GET', {
		tokenRequired: false
	});
}

